<?php

namespace app\model\delivery;

use think\Model;

class PostageTemplate extends Model
{

    public function regions(): \think\model\relation\HasMany
    {
        return $this->hasMany(PostageTemplateRegion::class, 'tpl_id');
    }

    public function conditions(): \think\model\relation\HasMany
    {
        return $this->hasMany(PostageTemplateRegionCondition::class, 'tpl_id');
    }

    public function regionNos(){
        return $this->hasOne(PostageTemplateRegionNo::class, 'tpl_id');
    }


}
